package com.zhijiaoyun.model.dto;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.zhijiaoyun.model.CourseCategory;

/**
 * @author shisfish
 * @date 2017/6/6
 */
public class CourseCategoryDto implements Serializable {
	
	private static final long serialVersionUID = -7299623899854341026L;
	
	public CourseCategoryDto() {
		super();
	}

	public CourseCategoryDto(CourseCategory courseCategory) {
		super();
		this.categoryId = courseCategory.getCategoryId();
		this.name = courseCategory.getName();
		this.parentId = courseCategory.getParentId();
		this.level = courseCategory.getLevel();
		this.status = courseCategory.getStatus();
		this.sort = courseCategory.getSort();
		this.createTime = courseCategory.getCreateTime();
	}

	private Long categoryId;

    private String name;

    private Long parentId;

    private Integer level;

    private Integer status;

    private Integer sort;

    private Date createTime;
    
    private List<CourseCategory> subCategory;

	public Long getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public List<CourseCategory> getSubCategory() {
		return subCategory;
	}

	public void setSubCategory(List<CourseCategory> subCategory) {
		this.subCategory = subCategory;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
